import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

let routes=[
  {
    path: "/discover",
    component:()=>import("@/pages/discover") ,
    children:[
        {
            path:"play",
            component:()=>import("@/pages/discover/play")
        },
        {
            path:"djradio",
            component:()=>import("@/pages/discover/djradio")
        }
    ]
},
{
    path: "/friend/00",
    component:()=>import("@/pages/friend") 
},
{
    path: "/mine",
    component: () => import("@/pages/mine")
},
{
    path: "/list",
    component: () => import("@/pages/list")
},
{
    path: "/detail/:productid",
    // props:true,
    component: () => import("@/pages/detail")
},
{path:"*",
   component:()=>import("@/pages/404")

}
]

let router = new VueRouter({
   routes,
});

export default router;
